import {ref} from 'vue'

export const usePopup = () => {
  const popup = ref(null)

  const close = () => {
    popup.value?.close()
  }

  const open = () => {
    popup.value?.open()
  }

  return { popup, close, open }
}
